home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / doom / server_1.zip / _SERVHLP.QC < prev    next >
Text File  |  1996-10-04  |  3KB  |  101 lines

  1. /*
  2. **
  3. ** _servhlp.qc (ServerHelp Code, 1.0)
  4. **
  5. ** Copyright (C) 1996 Johannes Plass
  6. ** 
  7. ** This program is free software; you can redistribute it and/or modify
  8. ** it under the terms of the GNU General Public License as published by
  9. ** the Free Software Foundation; either version 2 of the License, or
  10. ** (at your option) any later version.
  11. ** 
  12. ** This program is distributed in the hope that it will be useful,
  13. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. ** GNU General Public License for more details.
  16. **
  17. ** You should have received a copy of the GNU General Public License
  18. ** along with this program; if not, write to the Free Software
  19. ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ** 
  21. ** Author:   Johannes Plass (plass@dipmza.physik.uni-mainz.de)
  22. **
  23. */
  24.  
  25. void(entity player) ServerHelpInit =
  26. {
  27.    if (!USE_MODULE_SERVERHELP) return;
  28.    stuffcmd(player,"alias help-server \"impulse 207\";\n");
  29. };
  30.  
  31. void(entity player) ServerHelpInfo =
  32. {
  33.    if (!USE_MODULE_SERVERHELP) return;
  34. };
  35.  
  36. void(entity player) ServerHelpAnnounce =
  37. {
  38.    if (!USE_MODULE_SERVERHELP) return;
  39.                    // 123456789#123456789#123456789#12345678
  40.    sprint(player,"\nType 'help-server' for help on server\nproperties.\n\n");
  41. };
  42.  
  43. void(entity player) ServerHelpShowHelp =
  44. {
  45.    if (!USE_MODULE_SERVERHELP) return;
  46.    ServerHelpShowServerSettings(player);
  47.    sprint(player,"\n");
  48.    ModulesShowInfo(player);
  49. };
  50.  
  51. void(entity player) ServerHelpShowServerSettings =
  52. {
  53.    local float  num;
  54.    local string numstr;
  55.  
  56.    if (!USE_MODULE_SERVERHELP) return;
  57.    sprint(player,"\n£££ ");
  58.    sprint(player,"Server Settings:\n\n");
  59. //   num    = cvar("registered");
  60. //     numstr    = ftos(num);
  61. //     sprint(player, "  registered: ");
  62. //     sprint(player, numstr);
  63. //     sprint(player, "\n");
  64. //   num    = cvar("sys_ticrate");
  65. //     numstr    = ftos(num);
  66. //     sprint(player, "  sys_ticrate: ");
  67. //     sprint(player, numstr);
  68. //     sprint(player, "\n");
  69. //   num    = cvar("pausable");
  70. //     numstr    = ftos(num);
  71. //     sprint(player, "  pausable:   ");
  72. //     sprint(player, numstr);
  73. //     sprint(player, "\n");
  74.    num    = cvar("sv_aim");
  75.      numstr    = ftos(num);
  76.      sprint(player, "  sv_aim:     ");
  77.      sprint(player, numstr);
  78.      sprint(player, "\n");
  79.    num    = cvar("fraglimit");
  80.      numstr    = ftos(num);
  81.      sprint(player, "  fraglimit:  ");
  82.      sprint(player, numstr);
  83.      sprint(player, "\n");
  84.    num    = cvar("timelimit");
  85.      numstr    = ftos(num);
  86.      sprint(player, "  timelimit:  ");
  87.      sprint(player, numstr);
  88.      sprint(player, "\n");
  89.    num    = cvar("noexit");
  90.      numstr    = ftos(num);
  91.      sprint(player, "  noexit:     ");
  92.      sprint(player, numstr);
  93.      sprint(player, "\n");
  94.    num    = cvar("teamplay");
  95.      numstr    = ftos(num);
  96.      sprint(player, "  teamplay:   ");
  97.      sprint(player, numstr);
  98.      sprint(player, "\n");
  99. };
  100.  
  101.